package main

import (
	"fmt"
	"github.com/tidwall/gjson"
)

func main() {
	jsonStr := ""
	city := gjson.Get(jsonStr, "city")
	fmt.Println(city)
	wendu := gjson.Get(jsonStr, "wendu").Array()
	fmt.Println(wendu)
	shidu := gjson.Get(jsonStr, "shidu").Array()
	fmt.Println(shidu)
	yali := gjson.Get(jsonStr, "yali").Array()
	fmt.Println(yali)
	sum := 0.0
	for _, val := range wendu {
		sum += val.Float()
	}

	fmt.Println(sum / float64(len(wendu)))
}
